home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / Car / Transmission.h < prev    next >
Encoding:
Text File  |  1992-06-16  |  932 b   |  55 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import <objc/Object.h>
  5.  
  6. @interface Transmission:Object
  7. {
  8.     int currentGear;
  9.     float efficiency;
  10.     float finalDriveRatio;
  11.     float gearRatios[5];
  12.     float mass;
  13.     float shiftLag;
  14.     float shiftPoints[4];
  15.     float engineTorque;
  16.     float motorTorque;
  17.     BOOL shifting;
  18.     float shiftTime;
  19. }
  20.  
  21. // Override methods. 
  22.  
  23. - init;
  24. - read:(NXTypedStream *)stream;
  25. - write:(NXTypedStream *)stream;
  26.  
  27. // This Class' methods
  28.  
  29. - (int)currentGear;
  30. - setCurrentGear:(int)aNumber;
  31.  
  32. - (float)efficiency;
  33. - setEfficiency:(float)aNumber;
  34.  
  35. - (float)finalDriveRatio;
  36. - setFinalDriveRatio:(float)aNumber;
  37.  
  38. - (float *)gearRatios;
  39. - setGearRatios:(float *)theRatios;
  40.  
  41. - (float)mass;
  42. - setMass:(float)aNumber;
  43.  
  44. - (float)shiftLag;
  45. - setShiftLag:(float)aNumber;
  46.  
  47. - (float*)shiftPoints;
  48. - setShiftPoints:(float *)thePoints;
  49.  
  50. - (float)inputSpeed;
  51. - engineInput:(float)torque;
  52. - motorInput:(float)torque;
  53.  
  54. @end
  55.